package quizman.domain;
public class ShortAnswerQuestion extends Question {
	private String answer;
	
	public ShortAnswerQuestion(String name)
	{
		super(name);		
	}
	
	public ShortAnswerQuestion(String name, String text)
	{
		super(name,text);		
	}

	/**
	 * @param the answer to set
	 */
	public void setAnswer(String answer) {
		this.answer = answer;
	}

	/**
	 * @return the answer
	 */
	public String getAnswer() {
		return answer;
	}
	public String getFormHtml()
	{
		return "<textarea rows=20 cols=80 name=\"" + getName() + "\"></textarea><br>\n"+
		"<br>Answer: " + getAnswer() + "<br>\n";
	}
}
